package cn.cqie.attendance.student.domian;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonInclude;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.experimental.Accessors;
import org.apache.ibatis.type.Alias;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.util.Date;

/**
 * @Author: xiehaodong
 * @Date: 2021/6/23 - 13:46
 * @Description: cn.cqie.attendance.student.domian
 * @version: 1.0
 */
@Data
@Accessors(chain = true)
@ApiModel(value="homework", description="")
@Alias("homework")
@JsonInclude(JsonInclude.Include.NON_NULL)
public class Homework implements Serializable {
    private static final long serialVersionUID = 1L;

    /** 作业Id */
    private Long id;

    /** 小组 */
    @ApiModelProperty(value = "小组")
    private Long groupId;

    /** 得分 */
    @ApiModelProperty(value = "得分")
    private Long score;

    /** 学生 */
    @ApiModelProperty(value = "学生")
    private Long stuId;

    /** 0 未提交 1 待批复 2 已批复 */
    @ApiModelProperty(value = "0 未提交 1 待批复 2 已批复")
    private Integer status;

    /** 批复内容 */
    @ApiModelProperty(value = "批复内容")
    private String replyContent;

    /** 学生答题内容 */
    @ApiModelProperty(value = "学生答题内容")
    private String answerContent;

    /** 学生完成时间 */
    @ApiModelProperty(value = "学生完成时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date completeTime;

    /** 下发的作业id */
    @ApiModelProperty(value = "下发的作业id")
    private Long publishHomeworkId;

    private PublishHomework publishHomework;
    private TrainteacherCourse trainteacherCourse;
    private Course course;
    private Attachment attachment;

}
